/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sirtet.tetris;

import sirtet.netplay.server.GameRoom;
import sirtet.netplay.server.GameRoomFactory;

/**
 * A concrete factory that creats GameRoom for Battling Super Tetris games
 * @author guangwei.zhu
 */
public class TetrisQualifierRoomFactory extends GameRoomFactory {
    public final static String GAMETYPE = "tetris-qualifier";

    public TetrisQualifierRoomFactory() {
        super(TetrisQualifierRoomFactory.GAMETYPE);
    }

    @Override
    protected GameRoom internalCreateRoom() {
        TetrisQualifierRoom room = new TetrisQualifierRoom();
        room.setMaxBoards(1);
        room.setMaxPlayers(1);

        return room;
    }
}
